package com.zh.webflux.auth;

import org.springframework.security.access.prepost.PreAuthorize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author ZH
 * @date 11:53 2021-01-16
 */
@Retention(RetentionPolicy.RUNTIME)
@PreAuthorize("authentication.name == #user.username")
public @interface LoginUser {
}
